package code17_单例模式;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public class Test02_懒汉模式 {
    public static void main(String[] args) {
        OtherBean otherBean=OtherBean.getOtherBean();
        OtherBean otherBean2=OtherBean.getOtherBean();
        System.out.println(otherBean==otherBean2);
    }
}
